import React from 'react';
import BasePosts from "./BasePosts";
import {useQuery} from "../Helpers";


export default function CategoryPostsPage(props) {
    const query = useQuery()
    const queryPage = query.get('page')
    const categoryName = props.match.params.categoryName
    const url = `/api/v1/categories/${categoryName}/`
    return <BasePosts name={categoryName} url={url} queryPage={queryPage}/>
};

